<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>v-bind表达式中使用过滤器</title>
<!--引入Vue库-->
<script src="vue.js"></script>
<style>
.Big {
  font-size: 36px;
  font-weight: bold;
  color: blue;
  }
</style>
</head>
<body>	
<div id="app" :class="raw | format">welcome</div>
<script>
var app = new Vue({
  el: '#app',
  data:{
    raw: 'big'
  },
  filters: {
    format: function (value) {
		value = value.toString()
        return value.charAt(0).toUpperCase() + value.slice(1)
    }
  }
})
</script>
</body>
</html>
